package org.bee.rest.id.server.resource;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.google.gson.Gson;

@Path("test")
public class PersonResource
{
	/**
	 * Gets the certificate content for the specified user. 
	 * 
	 * @param userName user name
	 * @return
	 */
	@Path("user/{username}")
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public String getUserCert(@PathParam("username")String userName)
	{
		String result = userName+" is good man.";
		return new Gson().toJson(result);
	}
}
